package github.kawaiior.botapiserver.common;

public class DataResponse<T> extends ActionResponse{

    private final T data;

    public DataResponse(int code, String message, T data) {
        super(code, message);
        this.data = data;
    }

    public DataResponse(T data) {
        super(1, "成功");
        this.data = data;
    }

    public T getData() {
        return data;
    }
}
